package com.ccy.product.to;

import lombok.Data;

import java.util.Objects;

/**
 * @author coder_ccy
 * @date 2022/7/22 10:24
 */
@Data
public class Attr {
    private Long attrId;
    private String attrName;
    private String attrValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || this.getClass() != o.getClass()) return false;
        Attr attr = (Attr) o;
        return Objects.equals(attrId, attr.attrId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrId);
    }
}
